Creating Points

Point

function Point(X, Y: Integer): TPoint; overload;

function Point(const FP: TFloatPoint): TPoint; overload;

function Point(const FXP: TFixedPoint): TPoint; overload;

Constructs a point with integer coordinates, or converts it from the one with fixed/floating point coordinates by rounding them to nearest integers.

FloatPoint

function FloatPoint(X, Y: Single): TFloatPoint; overload;

function FloatPoint(const P: TPoint): TFloatPoint; overload;

function FloatPoint(const FXP: TFixedPoint): TFloatPoint; overload;

Provides construction and converstion of points with floating-point coordinates.

FixedPoint

function FixedPoint(X, Y: Integer): TFixedPoint; overload;

function FixedPoint(X, Y: Single): TFixedPoint; overload;

function FixedPoint(const P: TPoint): TFixedPoint; overload;

function FixedPoint(const FP: TFloatPoint): TFixedPoint; overload;

Provides construction and converstion of points with fixed-point coordinates

See Also

Point Types